home *** CD-ROM | disk | FTP | other *** search
- ASSOCIATED(3I) Last changed: 2-5-98
-
-
- NNAAMMEE
- AASSSSOOCCIIAATTEEDD - Returns the pointer association status
-
- SSYYNNOOPPSSIISS
- AASSSSOOCCIIAATTEEDD (([PPOOIINNTTEERR==]_p_o_i_n_t_e_r [,,[TTAARRGGEETT==]_t_a_r_g_e_t]))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- Fortran 90
-
- DDEESSCCRRIIPPTTIIOONN
- The AASSSSOOCCIIAATTEEDD intrinsic function returns the association status of
- its pointer argument or indicates the pointer is associated with the
- target. It accepts the following arguments:
-
- _p_o_i_n_t_e_r Must be a pointer and can be of any type. Its pointer
- association status must not be undefined.
-
- _t_a_r_g_e_t Must be a pointer or target. If it is a pointer, its
- pointer association status must not be undefined.
-
- AASSSSOOCCIIAATTEEDD is an inquiry function. The name of this intrinsic cannot
- be passed as an argument.
-
- RREETTUURRNN VVAALLUUEESS
- The result is of type default logical.
-
- If _t_a_r_g_e_t is absent, the result is true if _p_o_i_n_t_e_r is currently
- associated with a target and false if it is not.
-
- If _t_a_r_g_e_t is present and is a target, the result is true if _p_o_i_n_t_e_r is
- currently associated with _t_a_r_g_e_t and false if it is not.
-
- If _t_a_r_g_e_t is present and is a pointer, the result is true if both
- _p_o_i_n_t_e_r and _t_a_r_g_e_t are currently associated with the same target, and
- is false otherwise.
-
- If either _p_o_i_n_t_e_r or _t_a_r_g_e_t is disassociated, the result is false.
-
- If _p_o_i_n_t_e_r and _t_a_r_g_e_t are both dummy arguments, the result is
- undefined.
-
- EEXXAAMMPPLLEESS
- Example 1: AASSSSOOCCIIAATTEEDD ((CCUURRRREENNTT,, HHEEAADD)) is true if CCUURRRREENNTT points to
- the target HHEEAADD.
-
- Example 2: Consider the following statement:
-
- AA__PPAARRTT ==>> AA ((::NN))
-
- After the preceding statement is executed, the statement AASSSSOOCCIIAATTEEDD
- ((AA__PPAARRTT,, AA)) is true if NN is equal to UUBBOOUUNNDD((AA,, DDIIMM == 11)).
-
- Example 3: After the execution of the following statements,
- AASSSSOOCCIIAATTEEDD((CCUURR,, TTOOPP)) is false:
-
- NULLIFY ((CCUURR));; NNUULLLLIIFFYY ((TTOOPP))
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
- printed version of this man page.
-